<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table align="center">
    <tr>
        <th>序号</th>
        <th>卡号</th>
        <th>密码</th>
        <th>所属银行</th>
        <th>有效日期</th>
        <th>余额</th>
    </tr>

    <c:forEach items="${cardList}" var="c">
        <tr>
            <td>${c.id}</td>
            <td>${c.cardId}</td>
            <td>${c.cardPassword}</td>
            <td>${c.cardName}</td>
            <td>${c.cardDate}</td>
            <td>${c.cardBalance}</td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
